<?php
	$fd = 1;
	$fd_count=1;
	$house_count = 1;
	$team_count = 1;
	$team  = 'A';
	$tNo = 4;
	while ($fd <= 13) {
		if($fd_count <7){
			//todo 分A B
			if($team_count < 4){
				echo 'step1-';
				echo "此时fd:".$fd." 计数".$fd_count;
				echo " 属于".$team."小队";
				echo " 属于第".$house_count."房间";
				echo "fd_count".$fd_count;
				echo "team_count".$team_count++;
				echo PHP_EOL;
				$fd_count++;
			}else{
				echo 'step2-';
				$team = "B";
				$team_count = 1;
				echo "此时fd:".$fd." 计数".$fd_count;
				echo " 属于".$team."小队";
				echo " 属于第".$house_count."房间";
				echo "fd_count".$fd_count;
				echo "team_count".$team_count;
				echo PHP_EOL;
				$team_count++;
				$fd_count++;
			}
		}else{
			//条件 fd_count = 7
			echo 'step3-';
			$house_count ++;
			$fd_count = 1;
			$team_count = 1;
			$team = "A";
			echo "此时fd:".$fd." 计数".$fd_count;
			echo " 属于"."A"."小队";
			echo " 属于第".$house_count."房间";
			echo "fd_count".$fd_count;
			echo "team_count".$team_count;
			echo PHP_EOL;
			$fd_count++;
			$team_count++;
		}
		$fd ++;
	}

 //if($key%2==0){echo '</li>';}
